package com.aounhui.customer.openfeign;

import com.aounhui.common.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @author aounhui
 * @version 1.0
 * @date 2021/6/17 9:21
 */
@FeignClient(name = "improve-productor-2001")
public interface ProductorService {

    @GetMapping(value = "/productor/commodity/search")
    Result getCommodity(@RequestParam String commodityName,
                        @RequestParam int number,
                        @RequestParam String orderId);

    @GetMapping(value = "/productor/factory/get")
    Result getCommodityFactory(@RequestParam String name);
}
